<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>账户安全 - USDTMarket</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#165DFF',
                        success: '#36D399',
                        danger: '#F87272',
                        dark: '#1E293B',
                        light: '#F1F5F9',
                        'dark-blue': '#0F172A',
                        'light-blue': '#E0E7FF',
                    },
                    fontFamily: {
                        inter: ['Inter', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .scrollbar-hide {
                -ms-overflow-style: none;
                scrollbar-width: none;
            }
            .scrollbar-hide::-webkit-scrollbar {
                display: none;
            }
            .glass {
                background: rgba(255, 255, 255, 0.2);
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
            }
            .card-hover {
                transition: all 0.3s ease;
            }
            .card-hover:hover {
                transform: translateY(-3px);
                box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
            }
            .security-item.active {
                border-left-color: theme('colors.primary');
                background-color: theme('colors.primary/10');
                color: theme('colors.light');
            }
            .progress-bar {
                height: 8px;
                border-radius: 4px;
                background: linear-gradient(90deg, theme('colors.danger') 0%, theme('colors.success') 100%);
            }
        }
    </style>
</head>
<body class="font-inter bg-gradient-to-br from-dark-blue to-dark min-h-screen text-light">
    <!-- 导航栏 -->
    <header class="fixed top-0 left-0 right-0 z-50 transition-all duration-300" id="navbar">
        <div class="container mx-auto px-4 py-3 flex items-center justify-between glass border-b border-white/10">
            <div class="flex items-center space-x-2">
                <div class="w-10 h-10 rounded-lg bg-primary flex items-center justify-center">
                    <i class="fa fa-exchange text-white text-xl"></i>
                </div>
                <h1 class="text-xl font-bold bg-gradient-to-r from-primary to-success bg-clip-text text-transparent">USDT<span class="text-sm font-normal ml-1">Market</span></h1>
            </div>
            
            <nav class="hidden md:flex items-center space-x-8">
                <a href="#" class="text-white/70 hover:text-primary transition-colors">首页</a>
                <a href="#" class="text-white/70 hover:text-primary transition-colors">购买USDT</a>
                <a href="#" class="text-white/70 hover:text-primary transition-colors">出售USDT</a>
                <a href="#" class="text-white/70 hover:text-primary transition-colors">交易记录</a>
                <a href="#" class="text-white/70 hover:text-primary transition-colors">收款方式</a>
                <a href="#" class="text-primary font-medium">账户安全</a>
            </nav>
            
            <div class="flex items-center space-x-4">
                <div class="relative">
                    <button class="flex items-center space-x-2 px-4 py-2 rounded-lg bg-primary/20 text-primary hover:bg-primary/30 transition-colors">
                        <i class="fa fa-user-circle-o text-xl"></i>
                        <span class="hidden md:inline">用户12345</span>
                        <i class="fa fa-angle-down"></i>
                    </button>
                </div>
                <button class="md:hidden text-white text-xl">
                    <i class="fa fa-bars"></i>
                </button>
            </div>
        </div>
    </header>

    <!-- 主内容区 -->
    <main class="container mx-auto px-4 pt-24 pb-16">
        <!-- 面包屑导航 -->
        <div class="mb-8 text-sm text-white/60">
            <a href="#" class="hover:text-primary transition-colors">首页</a> &gt; <span class="text-white">账户安全</span>
        </div>
        
        <div class="grid grid-cols-1 lg:grid-cols-4 gap-8">
            <!-- 侧边栏 -->
            <div class="lg:col-span-1">
                <div class="bg-dark-blue rounded-2xl p-6 border border-white/10 sticky top-24">
                    <div class="flex items-center space-x-4 mb-6">
                        <div class="w-16 h-16 rounded-full bg-primary/20 flex items-center justify-center text-primary">
                            <i class="fa fa-user-circle-o text-3xl"></i>
                        </div>
                        <div>
                            <h3 class="font-bold text-lg">用户12345</h3>
                            <p class="text-white/60 text-sm">普通用户</p>
                        </div>
                    </div>
                    
                    <div class="space-y-2">
                        <a href="#" class="security-item flex items-center space-x-3 px-4 py-3 rounded-lg border-l-4 border-transparent hover:bg-white/5 transition-colors">
                            <i class="fa fa-home w-5 text-center"></i>
                            <span>个人主页</span>
                        </a>
                        <a href="#" class="security-item flex items-center space-x-3 px-4 py-3 rounded-lg border-l-4 border-transparent hover:bg-white/5 transition-colors">
                            <i class="fa fa-money w-5 text-center"></i>
                            <span>我的钱包</span>
                        </a>
                        <a href="#" class="security-item flex items-center space-x-3 px-4 py-3 rounded-lg border-l-4 border-transparent hover:bg-white/5 transition-colors">
                            <i class="fa fa-exchange w-5 text-center"></i>
                            <span>交易记录</span>
                        </a>
                        <a href="#" class="security-item flex items-center space-x-3 px-4 py-3 rounded-lg border-l-4 border-transparent hover:bg-white/5 transition-colors">
                            <i class="fa fa-credit-card w-5 text-center"></i>
                            <span>收款方式</span>
                        </a>
                        <a href="#" class="security-item flex items-center space-x-3 px-4 py-3 rounded-lg border-l-4 border-transparent hover:bg-white/5 transition-colors active">
                            <i class="fa fa-shield w-5 text-center"></i>
                            <span>账户安全</span>
                        </a>
                        <a href="#" class="security-item flex items-center space-x-3 px-4 py-3 rounded-lg border-l-4 border-transparent hover:bg-white/5 transition-colors">
                            <i class="fa fa-cog w-5 text-center"></i>
                            <span>账户设置</span>
                        </a>
                    </div>
                    
                    <div class="mt-8 pt-6 border-t border-white/10">
                        <button class="w-full px-4 py-3 bg-danger/20 text-danger rounded-lg hover:bg-danger/30 transition-colors flex items-center justify-center space-x-2">
                            <i class="fa fa-sign-out"></i>
                            <span>退出登录</span>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 主内容 -->
            <div class="lg:col-span-3">
                <!-- 安全概览 -->
                <div class="bg-dark-blue rounded-2xl p-6 border border-white/10 mb-8">
                    <h2 class="text-xl font-bold mb-6">安全概览</h2>
                    
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8">
                        <div class="bg-dark rounded-xl p-6 border border-white/10">
                            <div class="flex justify-between items-start mb-4">
                                <h3 class="font-bold">安全分数</h3>
                                <span class="text-xl font-bold text-success">75分</span>
                            </div>
                            <div class="progress-bar mb-2">
                                <div class="h-full bg-success rounded-full" style="width: 75%"></div>
                            </div>
                            <p class="text-white/60 text-sm">良好 - 建议开启所有安全选项以保护您的资产</p>
                        </div>
                        
                        <div class="bg-dark rounded-xl p-6 border border-white/10">
                            <div class="flex justify-between items-start mb-4">
                                <h3 class="font-bold">最近登录</h3>
                                <span class="text-white/60 text-sm">今天 10:23</span>
                            </div>
                            <div class="flex items-center space-x-2 text-sm">
                                <i class="fa fa-laptop text-primary"></i>
                                <span>Windows 10 · Chrome 114</span>
                                <span class="px-2 py-1 bg-success/20 text-success rounded-full text-xs">信任设备</span>
                            </div>
                        </div>
                    </div>
                    
                    <div class="space-y-4">
                        <div class="flex items-center justify-between p-4 bg-dark rounded-xl border border-white/10">
                            <div class="flex items-center">
                                <div class="w-10 h-10 rounded-full bg-primary/20 flex items-center justify-center text-primary mr-4">
                                    <i class="fa fa-lock"></i>
                                </div>
                                <div>
                                    <h3 class="font-bold">密码强度</h3>
                                    <p class="text-white/60 text-sm">上次修改: 2023-06-01</p>
                                </div>
                            </div>
                            <div class="flex items-center">
                                <span class="text-success mr-4">强</span>
                                <button class="text-primary hover:underline" onclick="openChangePasswordModal()">修改密码</button>
                            </div>
                        </div>
                        
                        <div class="flex items-center justify-between p-4 bg-dark rounded-xl border border-white/10">
                            <div class="flex items-center">
                                <div class="w-10 h-10 rounded-full bg-primary/20 flex items-center justify-center text-primary mr-4">
                                    <i class="fa fa-mobile"></i>
                                </div>
                                <div>
                                    <h3 class="font-bold">手机验证</h3>
                                    <p class="text-white/60 text-sm">已绑定: 138****8888</p>
                                </div>
                            </div>
                            <div class="flex items-center">
                                <span class="text-success mr-4">已绑定</span>
                                <button class="text-primary hover:underline" onclick="openChangePhoneModal()">更换手机</button>
                            </div>
                        </div>
                        
                        <div class="flex items-center justify-between p-4 bg-dark rounded-xl border border-white/10">
                            <div class="flex items-center">
                                <div class="w-10 h-10 rounded-full bg-danger/20 flex items-center justify-center text-danger mr-4">
                                    <i class="fa fa-shield"></i>
                                </div>
                                <div>
                                    <h3 class="font-bold">两步验证</h3>
                                    <p class="text-white/60 text-sm">提高账户安全性</p>
                                </div>
                            </div>
                            <div class="flex items-center">
                                <span class="text-danger mr-4">未开启</span>
                                <button class="text-primary hover:underline" onclick="openEnable2faModal()">立即开启</button>
                            </div>
                        </div>
                        
                        <div class="flex items-center justify-between p-4 bg-dark rounded-xl border border-white/10">
                            <div class="flex items-center">
                                <div class="w-10 h-10 rounded-full bg-danger/20 flex items-center justify-center text-danger mr-4">
                                    <i class="fa fa-envelope"></i>
                                </div>
                                <div>
                                    <h3 class="font-bold">邮箱验证</h3>
                                    <p class="text-white/60 text-sm">未绑定邮箱</p>
                                </div>
                            </div>
                            <div class="flex items-center">
                                <span class="text-danger mr-4">未绑定</span>
                                <button class="text-primary hover:underline" onclick="openBindEmailModal()">立即绑定</button>
                            </div>
                        </div>
                        
                        <div class="flex items-center justify-between p-4 bg-dark rounded-xl border border-white/10">
                            <div class="flex items-center">
                                <div class="w-10 h-10 rounded-full bg-primary/20 flex items-center justify-center text-primary mr-4">
                                    <i class="fa fa-ban"></i>
                                </div>
                                <div>
                                    <h3 class="font-bold">提现保护</h3>
                                    <p class="text-white/60 text-sm">限制USDT提现到指定地址</p>
                                </div>
                            </div>
                            <div class="flex items-center">
                                <span class="text-success mr-4">已开启</span>
                                <button class="text-primary hover:underline" onclick="openWithdrawalProtectionModal()">管理地址</button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 安全日志 -->
                <div class="bg-dark-blue rounded-2xl p-6 border border-white/10 mb-8">
                    <h2 class="text-xl font-bold mb-6">安全日志</h2>
                    
                    <div class="overflow-x-auto">
                        <table class="w-full">
                            <thead>
                                <tr class="border-b border-white/10">
                                    <th class="text-left py-3 px-4 text-white/70 font-medium">操作类型</th>
                                    <th class="text-left py-3 px-4 text-white/70 font-medium">时间</th>
                                    <th class="text-left py-3 px-4 text-white/70 font-medium">IP地址</th>
                                    <th class="text-left py-3 px-4 text-white/70 font-medium">位置</th>
                                    <th class="text-left py-3 px-4 text-white/70 font-medium">状态</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr class="border-b border-white/10">
                                    <td class="py-3 px-4">登录</td>
                                    <td class="py-3 px-4">今天 10:23</td>
                                    <td class="py-3 px-4">192.168.1.100</td>
                                    <td class="py-3 px-4">北京市</td>
                                    <td class="py-3 px-4"><span class="text-success">成功</span></td>
                                </tr>
                                <tr class="border-b border-white/10">
                                    <td class="py-3 px-4">修改密码</td>
                                    <td class="py-3 px-4">2023-06-01 15:45</td>
                                    <td class="py-3 px-4">192.168.1.101</td>
                                    <td class="py-3 px-4">北京市</td>
                                    <td class="py-3 px-4"><span class="text-success">成功</span></td>
                                </tr>
                                <tr class="border-b border-white/10">
                                    <td class="py-3 px-4">添加银行卡</td>
                                    <td class="py-3 px-4">2023-05-20 09:12</td>
                                    <td class="py-3 px-4">192.168.1.102</td>
                                    <td class="py-3 px-4">上海市</td>
                                    <td class="py-3 px-4"><span class="text-success">成功</span></td>
                                </tr>
                                <tr>
                                    <td class="py-3 px-4">登录尝试</td>
                                    <td class="py-3 px-4">2023-05-15 18:30</td>
                                    <td class="py-3 px-4">203.0.113.45</td>
                                    <td class="py-3 px-4">广东省</td>
                                    <td class="py-3 px-4"><span class="text-danger">失败</span></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                
                <!-- 安全提示 -->
                <div class="bg-dark-blue rounded-2xl p-6 border border-white/10">
                    <h2 class="text-xl font-bold mb-4">安全提示</h2>
                    <ul class="space-y-3 text-white/70">
                        <li class="flex items-start">
                            <i class="fa fa-check-circle text-success mt-1 mr-3"></i>
                            <span>不要与任何人分享您的密码、验证码或安全问题答案</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fa fa-check-circle text-success mt-1 mr-3"></i>
                            <span>定期修改您的密码，并使用包含字母、数字和特殊字符的强密码</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fa fa-check-circle text-success mt-1 mr-3"></i>
                            <span>启用两步验证以增加账户安全性</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fa fa-check-circle text-success mt-1 mr-3"></i>
                            <span>注意钓鱼网站，始终检查网址是否正确</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fa fa-check-circle text-success mt-1 mr-3"></i>
                            <span>如发现任何可疑活动，请立即联系客服</span>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </main>

    <!-- 修改密码模态框 -->
    <div id="change-password-modal" class="fixed inset-0 bg-black/50 z-50 flex items-center justify-center hidden">
        <div class="bg-dark-blue rounded-2xl p-6 border border-white/10 w-full max-w-md mx-4 relative">
            <button class="absolute top-4 right-4 text-white/70 hover:text-white" onclick="closeChangePasswordModal()">
                <i class="fa fa-times text-xl"></i>
            </button>
            
            <h3 class="text-xl font-bold mb-6">修改密码</h3>
            
            <form>
                <div class="space-y-4">
                    <div>
                        <label class="block text-white/70 text-sm font-medium mb-2" for="current-password">
                            当前密码
                        </label>
                        <input type="password" id="current-password" placeholder="请输入当前密码" class="w-full px-4 py-3 bg-dark border border-white/10 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary text-white">
                    </div>
                    
                    <div>
                        <label class="block text-white/70 text-sm font-medium mb-2" for="new-password">
                            新密码
                        </label>
                        <input type="password" id="new-password" placeholder="请输入新密码" class="w-full px-4 py-3 bg-dark border border-white/10 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary text-white">
                        <p class="text-white/60 text-xs mt-1">密码长度至少8位，包含大小写字母、数字和特殊字符</p>
                    </div>
                    
                    <div>
                        <label class="block text-white/70 text-sm font-medium mb-2" for="confirm-password">
                            确认新密码
                        </label>
                        <input type="password" id="confirm-password" placeholder="请再次输入新密码" class="w-full px-4 py-3 bg-dark border border-white/10 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary text-white">
                    </div>
                </div>
                
                <div class="flex flex-col sm:flex-row gap-4 mt-8">
                    <button type="button" class="w-full sm:w-auto px-6 py-3 bg-dark rounded-lg border border-white/10 text-white hover:bg-white/10 transition-colors font-medium flex items-center justify-center gap-2" onclick="closeChangePasswordModal()">
                        取消
                    </button>
                    <button type="submit" class="w-full sm:w-auto px-6 py-3 bg-primary text-white rounded-lg hover:bg-primary/90 transition-colors font-medium flex items-center justify-center gap-2">
                        保存更改
                    </button>
                </div>
            </form>
        </div>
    </div>

    <!-- 更换手机模态框 -->
    <div id="change-phone-modal" class="fixed inset-0 bg-black/50 z-50 flex items-center justify-center hidden">
        <div class="bg-dark-blue rounded-2xl p-6 border border-white/10 w-full max-w-md mx-4 relative">
            <button class="absolute top-4 right-4 text-white/70 hover:text-white" onclick="closeChangePhoneModal()">
                <i class="fa fa-times text-xl"></i>
            </button>
            
            <h3 class="text-xl font-bold mb-6">更换绑定手机</h3>
            
            <form>
                <div class="space-y-4">
                    <div>
                        <label class="block text-white/70 text-sm font-medium mb-2" for="current-phone">
                            当前手机号
                        </label>
                        <input type="text" id="current-phone" value="138****8888" disabled class="w-full px-4 py-3 bg-dark border border-white/10 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary text-white/60">
                    </div>
                    
                    <div>
                        <label class="block text-white/70 text-sm font-medium mb-2" for="new-phone">
                            新手机号
                        </label>
                        <input type="text" id="new-phone" placeholder="请输入新手机号" class="w-full px-4 py-3 bg-dark border border-white/10 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary text-white">
                    </div>
                    
                    <div>
                        <label class="block text-white/70 text-sm font-medium mb-2" for="phone-code">
                            验证码
                        </label>
                        <div class="flex space-x-3">
                            <input type="text" id="phone-code" placeholder="请输入验证码" class="flex-1 px-4 py-3 bg-dark border border-white/10 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary text-white">
                            <button type="button" class="px-4 py-3 bg-primary/20 text-primary rounded-lg hover:bg-primary/30 transition-colors">
                                获取验证码
                            </button>
                        </div>
                    </div>
                </div>
                
                <div class="flex flex-col sm:flex-row gap-4 mt-8">
                    <button type="button" class="w-full sm:w-auto px-6 py-3 bg-dark rounded-lg border border-white/10 text-white hover:bg-white/10 transition-colors font-medium flex items-center justify-center gap-2" onclick="closeChangePhoneModal()">
                        取消
                    </button>
                    <button type="submit" class="w-full sm:w-auto px-6 py-3 bg-primary text-white rounded-lg hover:bg-primary/90 transition-colors font-medium flex items-center justify-center gap-2">
                        绑定新手机
                    </button>
                </div>
            </form>
        </div>
    </div>

    <!-- 页脚 -->
    <footer class="bg-dark-blue border-t border-white/10">
        <div class="container mx-auto px-4 py-12">
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
                <div>
                    <div class="flex items-center space-x-2 mb-4">
                        <div class="w-10 h-10 rounded-lg bg-primary flex items-center justify-center">
                            <i class="fa fa-exchange text-white text-xl"></i>
                        </div>
                        <h2 class="text-xl font-bold bg-gradient-to-r from-primary to-success bg-clip-text text-transparent">USDT<span class="text-sm font-normal ml-1">Market</span></h2>
                    </div>
                    <p class="text-white/60 mb-4">安全、便捷的USDT交易平台，支持多种本币出售，平台担保交易，保障资金安全</p>
                    <div class="flex space-x-4">
                        <a href="#" class="w-8 h-8 rounded-full bg-white/10 flex items-center justify-center text-white hover:bg-primary transition-colors">
                            <i class="fa fa-twitter"></i>
                        </a>
                        <a href="#" class="w-8 h-8 rounded-full bg-white/10 flex items-center justify-center text-white hover:bg-primary transition-colors">
                            <i class="fa fa-telegram"></i>
                        </a>
                        <a href="#" class="w-8 h-8 rounded-full bg-white/10 flex items-center justify-center text-white hover:bg-primary transition-colors">
                            <i class="fa fa-discord"></i>
                        </a>
                        <a href="#" class="w-8 h-8 rounded-full bg-white/10 flex items-center justify-center text-white hover:bg-primary transition-colors">
                            <i class="fa fa-github"></i>
                        </a>
                    </div>
                </div>
                
                <div>
                    <h3 class="text-lg font-bold mb-4">出售服务</h3>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">USDT出售流程</a></li>
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">设置出售价格</a></li>
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">添加收款方式</a></li>
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">认证卖家权益</a></li>
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">提现到银行卡</a></li>
                    </ul>
                </div>
                
                <div>
                    <h3 class="text-lg font-bold mb-4">资源中心</h3>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">新手教程</a></li>
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">安全指南</a></li>
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">常见问题</a></li>
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">交易规则</a></li>
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">联系客服</a></li>
                    </ul>
                </div>
                
                <div>
                    <h3 class="text-lg font-bold mb-4">法律合规</h3>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">隐私政策</a></li>
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">服务条款</a></li>
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">风险提示</a></li>
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">合规声明</a></li>
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">知识产权</a></li>
                    </ul>
                </div>
            </div>
            
            <div class="h-px bg-white/10 my-8"></div>
            
            <div class="flex flex-col md:flex-row justify-between items-center">
                <p class="text-white/60 text-sm mb-4 md:mb-0">© 2025 USDTMarket. 保留所有权利。平台不参与任何资金交易，仅提供信息匹配服务。</p>
                <div class="flex space-x-6">
                    <a href="#" class="text-white/60 hover:text-primary transition-colors text-sm">隐私政策</a>
                    <a href="#" class="text-white/60 hover:text-primary transition-colors text-sm">服务条款</a>
                    <a href="#" class="text-white/60 hover:text-primary transition-colors text-sm">风险提示</a>
                </div>
            </div>
        </div>
    </footer>

    <!-- JavaScript -->
    <script>
        // 导航栏滚动效果
        const navbar = document.getElementById('navbar');
        window.addEventListener('scroll', () => {
            if (window.scrollY > 10) {
                navbar.classList.add('bg-dark-blue/90');
                navbar.classList.add('shadow-lg');
            } else {
                navbar.classList.remove('bg-dark-blue/90');
                navbar.classList.remove('shadow-lg');
            }
        });
        
        // 模态框相关函数
        function openChangePasswordModal() {
            document.getElementById('change-password-modal').classList.remove('hidden');
        }
        
        function closeChangePasswordModal() {
            document.getElementById('change-password-modal').classList.add('hidden');
        }
        
        function openChangePhoneModal() {
            document.getElementById('change-phone-modal').classList.remove('hidden');
        }
        
        function closeChangePhoneModal() {
            document.getElementById('change-phone-modal').classList.add('hidden');
        }
        
        function openEnable2faModal() {
            // 实际项目中实现
            alert('将跳转到开启两步验证页面');
        }
        
        function openBindEmailModal() {
            // 实际项目中实现
            alert('将跳转到绑定邮箱页面');
        }
        
        function openWithdrawalProtectionModal() {
            // 实际项目中实现
            alert('将跳转到提现保护管理页面');
        }
    </script>
</body>
</html>
    